#ifndef __SYSTEM_H_
#define __SYSTEM_H_

#define BAUD_RATE_9600 12
#define BAUD_RATE_4800 24
#define BAUD_RATE_2400 51
#define BAUD_RATE_1200 105 //100
#define BAUD_RATE_600 204

#define UART_BRGH_ENABLE 0
#define UART_RXINV_ENABLE 1
#define UART_UTXINV_ENABLE 0


#define LED LATAbits.LATA3
#define LED_TRIS TRISAbits.TRISA3

#define TX PORTBbits.RB14
#define TX_TRIS TRISBbits.TRISB14

#define RX PORTBbits.RB15
#define RX_TRIS TRISBbits.TRISB15

#define RF_PWR PORTAbits.RA2
#define RF_PWR_TRIS TRISAbits.TRISA2

#define ANALOG_PIN_CONFIG 0xFFFF

#define PIR_SENSOR_AN 0
#define LIGHT_SENSOR_AN 1

#define TC77_CS PORTAbits.RA6
#define TC77_CS_TRIS TRISAbits.TRISA6
#define TC77_PWR LATBbits.LATB9
#define TC77_PWR_TRIS TRISBbits.TRISB9

#endif

